﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Web;

namespace IiiToolkitMain
{
    public static class DebugHelper
    {
        
        public static void Info(string message)
        {
           
            lock (message)
            {
                var dic = new DirectoryInfo("Log");
                var LogFilePath = Path.Combine(dic.FullName, "log.txt");
                if (!System.IO.File.Exists(LogFilePath))
                {
                    System.IO.File.Create(LogFilePath);
                }
                System.IO.File.AppendAllText(LogFilePath, string.Format("\r\n{0:yyyy-MM-dd HH:mm:ss}\t{1}", DateTime.Now, message));
            }
        }
    }
}